package com.newworld.basketballfire.service.controller;

import com.newworld.basketballfire.service.delegate.DemoServiceDelegate;
import com.newworld.basketballfire.service.model.DemoInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * Created by George on 2018/12/23.
 * DemoService
 */

@RequestMapping(value = "/rest/demo")
@Controller
public class DemoService
{
    @Autowired
    private DemoServiceDelegate delegate;

    @RequestMapping(method = RequestMethod.GET)
    @ResponseBody
    public DemoInfo getDemoInfo()
    {
        return delegate.getDemoInfo();
    }
}
